<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>WeMall安装向导</title>
    <link href="/Public/Install/css/base.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/Install/css/style.css" rel="stylesheet" type="text/css"/>
    <script src="/Public/Install/js/jquery-1.10.2.min.js"></script>
    <script src="/Public/Install/js/install.js"></script>
</head>
<body>
<div class="g-install">
    <div class="m-head">
        <h1>WeMall安装环境测试</h1>
    </div>
    <div class="m-body">
        <div class="tt"></div>
        <div class="m-form">
            <legend>功能支持检测</legend>
            <?php if(is_array($check_env)): $i = 0; $__LIST__ = $check_env;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="formitm">
                    <label class="lab"><?php echo ($vo["0"]); ?>：</label>

                    <div class="ipt">
                        <?php echo ($vo["3"]); ?>&nbsp;&nbsp;&nbsp;&nbsp;
                        <?php if ($vo[4] == 'error'){ echo "<font color=red><b>×</b></font>"; } else { echo "<font color=green><b>√</b></font>"; } ?>
                    </div>
                </div><?php endforeach; endif; else: echo "" ;endif; ?>
            <legend>函数支持检测</legend>

            <?php if(is_array($check_func)): $i = 0; $__LIST__ = $check_func;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="formitm">
                    <label class="lab"><?php echo ($vo["0"]); ?>：</label>

                    <div class="ipt">
                        <?php echo ($vo["3"]); ?>&nbsp;&nbsp;&nbsp;&nbsp;
                        <?php if ($vo[4] == 'error'){ echo "<font color=red><b>×</b></font>"; } else { echo "<font color=green><b>√</b></font>"; } ?>
                    </div>
                </div><?php endforeach; endif; else: echo "" ;endif; ?>

            <div class="formitm"> 以上模块功能如果不可用可能会影响到系统的部分功能将无法使用</div>
            <legend>目录权限检测</legend>
            <?php if(is_array($check_dirfile)): $i = 0; $__LIST__ = $check_dirfile;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="formitm">
                    <label class="lab"><?php echo ($vo["1"]); ?>：</label>

                    <div class="ipt">
                        <?php echo ($vo["3"]); ?>&nbsp;&nbsp;&nbsp;&nbsp;
                        <?php if ($vo[2] == 'error'){ echo "<font color=red><b>×</b></font>"; } else { echo "<font color=green><b>√</b></font>"; } ?>
                    </div>
                </div><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
    <div class="m-foot"><a href="<?php echo U('index');?>">上一步</a>
        <?php if (!function_exists('mysql_connect')||!function_exists('mysql_pconnect')){ ?>
        <a href="javascript:;" onclick="alert('关键功能无法使用，无法继续操作！')">下一步</a>
        <?php }else { ?>
        <a href="<?php echo U('setup2');?>" class="submit">下一步</a>
        <?php } ?>
    </div>
</div>
</body>
</html>